<?php
session_start(); 
include("../../connectMysql/connetMysql.class.php");

$language="zh";
if(isset($_GET["language"])){
	$language=$_GET["language"];
}	
$_SESSION['language']=$language;
if(isset($_SESSION['user']))//判断登录//
{
	$conClass=new connetMysql;
	$con=$conClass->getConnect();
	 $sql="UPDATE user SET language='$language' WHERE username='".$_SESSION['user']."'";
	//$result =
	 mysqli_query($con,$sql);
}
Header("Location:../reflectIndex.php");

?>